package com.zlll.winner.enums;

import com.zlll.winner.enums.biz.Constant;

public class CommonEnum {

    /**
     * 删除状态
     */
    public enum DelEnum implements Constant {

        UNDEL("未删除",0),
        DEL("已删除",1);

        private String desc;
        private int value;
        private DelEnum(String desc, int value){
            this.desc = desc;
            this.value = value;
        }
        @Override
        public String desc() {
            return desc;
        }
        @Override
        public int val() {
            return value;
        }
    }

    /**
     * 是否
     * @author raymond
     */
    public enum YesOrNo implements Constant {

        YES("是", 1),
        NO("否", 0);

        private String desc;
        private int value;
        private YesOrNo(String desc, int value){
            this.desc = desc;
            this.value = value;
        }
        @Override
        public String desc() {
            return desc;
        }
        @Override
        public int val() {
            return value;
        }
    }

}
